package com.nytd.demo.service;

import com.nytd.demo.pojo.request.AddBlogRequest;
import com.nytd.demo.pojo.request.UpdateBlogRequest;
import com.nytd.demo.pojo.response.BlogDetailResponse;
import com.nytd.demo.pojo.response.BlogResponse;

import java.util.List;

public interface BlogInfoService {
    List<BlogResponse> getList();

    BlogDetailResponse getBlogDetail(Integer blogId);

    Boolean addBlog(AddBlogRequest addBlogRequest);

    Boolean update(UpdateBlogRequest updateBlogRequest);

    Boolean delete(Integer blogId);
}
